Traceback (most recent call last):
File "/Users/migish/anaconda/lib/python2.7/site-packages/IPython/core/ultratb.py", line 970, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File "/Users/migish/anaconda/lib/python2.7/site-packages/IPython/core/ultratb.py", line 233, in wrapped
return f(*args, **kwargs)
File "/Users/migish/anaconda/lib/python2.7/site-packages/IPython/core/ultratb.py", line 267, in _fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File "/Users/migish/anaconda/lib/python2.7/inspect.py", line 1044, in getinnerframes
framelist.append((tb.tb_frame,) + getframeinfo(tb, context))
File "/Users/migish/anaconda/lib/python2.7/inspect.py", line 1004, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File "/Users/migish/anaconda/lib/python2.7/inspect.py", line 454, in getsourcefile
if hasattr(getmodule(object, filename), '__loader__'):
File "/Users/migish/anaconda/lib/python2.7/inspect.py", line 497, in getmodule
f = getabsfile(module)
File "/Users/migish/anaconda/lib/python2.7/inspect.py", line 466, in getabsfile
_filename = getsourcefile(object) or getfile(object)
File "/Users/migish/anaconda/lib/python2.7/inspect.py", line 451, in getsourcefile
if os.path.exists(filename):
File "/Users/migish/anaconda/lib/python2.7/genericpath.py", line 18, in exists
os.stat(path)
KeyboardInterrupt
ERROR: Internal Python error in the inspect module.
Below is the traceback from this internal error.
Unfortunately, your original traceback can not be constructed.
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/Users/migish/anaconda/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in run_code(self, code_obj, result)
3050 if result is not None:
3051 result.error_in_exec = sys.exc_info()[1]
-> 3052 self.showtraceback()
3053 else:
3054 outflag = 0
/Users/migish/anaconda/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in showtraceback(self, exc_tuple, filename, tb_offset, exception_only)
1849 except Exception:
1850 stb = self.InteractiveTB.structured_traceback(etype,
-> 1851 value, tb, tb_offset=tb_offset)
1852
1853 self._showtraceback(etype, value, stb)
/Users/migish/anaconda/lib/python2.7/site-packages/IPython/core/ultratb.pyc in structured_traceback(self, etype, value, tb, tb_offset, number_of_lines_of_context)
1238 self.tb = tb
1239 return FormattedTB.structured_traceback(
-> 1240 self, etype, value, tb, tb_offset, number_of_lines_of_context)
1241
1242
/Users/migish/anaconda/lib/python2.7/site-packages/IPython/core/ultratb.pyc in structured_traceback(self, etype, value, tb, tb_offset, number_of_lines_of_context)
1146 # Verbose modes need a full traceback
1147 return VerboseTB.structured_traceback(
-> 1148 self, etype, value, tb, tb_offset, number_of_lines_of_context
1149 )
1150 else:
/Users/migish/anaconda/lib/python2.7/site-packages/IPython/core/ultratb.pyc in structured_traceback(self, etype, evalue, etb, tb_offset, number_of_lines_of_context)
998
999 formatted_exception = self.format_exception_as_a_whole(etype, evalue, etb, number_of_lines_of_context,
-> 1000 tb_offset)
1001
1002 colors = self.Colors # just a shorthand + quicker name lookup
/Users/migish/anaconda/lib/python2.7/site-packages/IPython/core/ultratb.pyc in format_exception_as_a_whole(self, etype, evalue, etb, number_of_lines_of_context, tb_offset)
949 records = self.get_records(etb, number_of_lines_of_context, tb_offset)
950
--> 951 frames = self.format_records(records)
952 if records is None:
953 return ""
/Users/migish/anaconda/lib/python2.7/site-packages/IPython/core/ultratb.pyc in format_records(self, records)
722
723 abspath = os.path.abspath
--> 724 for frame, file, lnum, func, lines, index in records:
725 #print '*** record:',file,lnum,func,lines,index # dbg
726 if not file:
TypeError: 'NoneType' object is not iterable